﻿using UI;
using UnityEngine;

namespace Core
{
    public class GameRoot : Unit
    {
        /// <summary>
        /// UI根节点
        /// </summary>
        public Transform UIRoot;

        public override void Awake()
        {
            DontDestroyOnLoad(this);
            UIManager.inst.InitUI(UIRoot);
            NetSvc.inst.InitSvc();
            ResSvc.inst.InitSvc();
            AudioSvc.inst.InitSvc();
            SystemLogicManager.inst.Init();
        }
    }
}